package com.eposi.eposigameinterface;

import com.eposi.eposigameinterface.adapter.LevelMoneyAdapter;
import com.eposi.eposigameinterface.adapter.RulePlayAdapter;
import com.eposi.eposigameinterface.adapter.SubRulePlayAdapter;

import android.annotation.TargetApi;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.widget.GridView;
import android.widget.ListView;

@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public class CreateGameActivity extends FragmentActivity {
	@Override
	protected void onCreate(Bundle arg0) {
		// TODO Auto-generated method stub
		super.onCreate(arg0);
		setContentView(R.layout.activity_create_game);
		GridView gridView = (GridView) findViewById(R.id.activity_create_game_grid_view_level);
		ListView listRulePrimary = (ListView) findViewById(R.id.activity_create_game_list_rule_primary);
		ListView listRuleSub = (ListView) findViewById(R.id.activity_create_game_list_rule_sub);
		LevelMoneyAdapter adapter = new LevelMoneyAdapter(this);
		gridView.setAdapter(adapter);
		RulePlayAdapter ruleAdapter = new RulePlayAdapter(this);
		listRulePrimary.setAdapter(ruleAdapter);
		SubRulePlayAdapter subRuleAdapter = new SubRulePlayAdapter(this);
		listRuleSub.setAdapter(subRuleAdapter);
		gridView.setChoiceMode(GridView.CHOICE_MODE_SINGLE);
		listRulePrimary.setChoiceMode(GridView.CHOICE_MODE_MULTIPLE);
		listRuleSub.setChoiceMode(GridView.CHOICE_MODE_MULTIPLE);
	}
}
